# <- this is for comment / total file size must be less than 4KB
tftp 0x21000000 ipl_s.bin
nand erase.part IPL0
nand write.e 0x21000000 IPL0 ${filesize}

tftp 0x21000000 ipl_cust_s.bin
nand erase.part IPL_CUST0
nand write.e 0x21000000 IPL_CUST0 ${filesize}
nand erase.part IPL_CUST1
nand write.e 0x21000000 IPL_CUST1 ${filesize}

tftp 0x21000000 uboot_s.bin
nand erase.part UBOOT0
nand write.e 0x21000000 UBOOT0 ${filesize}
nand erase.part UBOOT1
nand write.e 0x21000000 UBOOT1 ${filesize}

setenv bootargs ubi.mtd=ubi0,2048 root=/dev/mtdblock8 rootfstype=squashfs ro init=/linuxrc LX_MEM=0x1ffe0000 mma_heap=mma_heap_name0,miu=0,sz=0x10000000 mma_memblock_remove=1 cma=2M@0x23800000 mmap_reserved=fb,miu=0,sz=0x800000,max_start_off=0x1F000000,max_end_off=0x1F800000 $(mtdparts)
setenv bootcmd ' nand read.e 0x22000000 KERNEL 0x500000; bootm 0x22000000;nand read.e 0x22000000 RECOVERY 0x500000; bootm 0x22000000
setenv ota_upgrade_status 1
saveenv
printenv
reset
% <- this is end of file symbol
